package com.jblog.core.dao.blog.impl;

import org.springframework.stereotype.Repository;

import com.jblog.core.dao.base.EntityDao4Mybatis;
import com.jblog.core.dao.blog.PostTagLinkDao;
import com.jblog.core.model.blog.PostTagLink;

@Repository
public class PostTagLinkDaoImpl extends EntityDao4Mybatis<PostTagLink, Long>
        implements PostTagLinkDao {

    @Override
    public void deleteByPostPk(Long id) {
        super.getSqlSession().delete(getNamespace() + "deleteByPostPk", id);
    }

    @Override
    public void deleteByTagPk(Long id) {
        super.getSqlSession().delete(getNamespace() + "deleteByTagPk", id);
    }

}
